package com.health.warehouse.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.health.api.model.transporter.AddWareHouseItemRequest;
import com.health.warehouse.model.dto.AddWareHouseRequest;
import com.health.warehouse.model.dto.MedicineTransferRequest;
import com.health.warehouse.model.dto.linkItemToWareHouseRequest;
import com.health.warehouse.model.entity.Warehouse;
import com.health.warehouse.model.vo.WarehouseItemVO;
import jakarta.servlet.http.HttpServletRequest;

/**
* @author zhexueqi
* @description 针对表【warehouse(仓库表)】的数据库操作Service
* @createDate 2024-09-01 15:35:27
*/
public interface WarehouseService extends IService<Warehouse> {

    boolean addWareHouse(AddWareHouseRequest addWareHouseRequest);

    boolean addWareHouseItem(AddWareHouseItemRequest addWareHouseItemRequest);

    boolean linkItemToWareHouse(linkItemToWareHouseRequest linkItemToWareHouseRequest);


    Page<WarehouseItemVO> getNotAllocatedItems(HttpServletRequest request,int pageNum,int pageSize);

    boolean medicineTransferRequest(MedicineTransferRequest medicineTransferRequest, HttpServletRequest request);

    boolean agreeMedicineTransferRequest(Long medicineTransferId);
}
